package com.earl.bean;

import com.geccocrawler.gecco.annotation.PipelineName;
import com.geccocrawler.gecco.pipeline.Pipeline;

/**
 * Created by 知鹏 on 2018/6/21.
 */
@PipelineName(value="blogPipelines")
public class BlogPipelines implements Pipeline<Blog> {

    /**
     * 将抓取到的内容进行处理  这里是打印在控制台
     */
    @Override
    public void process(Blog blog) {
        System.out.println(blog.getContent());
    }

}